STEP 15: If the spaceship collides with an astronaut, let's celebrate!

Remember, sprite refers to the sprite that the collision event is assigned to: in this program, spaceship!

The .say() command is indented twice: once for the collision event, and once for the conditional.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)